<template>
  <div class="advantage">
    <div class="title">服务与优势</div>
    <div class="content">
      <div class="adv-box">
        <img src="@/assets/images/service/advantage/folder@2x.png" alt="" />
        <div class="sub-title">优势一</div>
        <div class="desc">多年项目开发经验，全行业覆盖开发，一站式服务体验</div>
      </div>
      <div class="adv-box">
        <img src="@/assets/images/service/advantage/folder@2x.png" alt="" />
        <div class="sub-title">优势二</div>
        <div class="desc">多年项目开发经验，全行业覆盖开发，一站式服务体验</div>
      </div>
      <div class="adv-box">
        <img src="@/assets/images/service/advantage/folder@2x.png" alt="" />
        <div class="sub-title">优势三</div>
        <div class="desc">多年项目开发经验，全行业覆盖开发，一站式服务体验</div>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
</script>

<style scoped lang="scss">
.advantage .title {
  font-size: 30px;
  font-weight: 400;
  text-align: center;
  color: #000000;
  margin: 50px 0 40px 0;
}

.advantage .content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.advantage .content .adv-box {
  width: 476px;
  height: 332px;
  background: #f6f6f9;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-right: 30px;
}

.advantage .content .adv-box:last-child {
  margin-right: 0;
}

.advantage .content .adv-box .sub-title {
  font-size: 26px;
  font-weight: 400;
  text-align: center;
  color: #000000;
  margin: 44px 0 28px 0;
}

.advantage .content .adv-box .desc {
  width: 297px;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  color: #b9c3cb;
}

.advantage .content .adv-box img {
  width: 74px;
}

.advantage .content .adv-box:hover {
  background: #fff;
  box-shadow: 0 2px 3.1px 1.4px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 780px) {
  .advantage .content {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 30px 20px !important;
    padding: 0 20px;
  }
  .advantage .content .adv-box {
    width: 100%;
    height: 230px;
    margin: 0 auto;
  }
  .advantage .content .adv-box img {
    width: 50px;
  }
  .advantage .content .adv-box .sub-title {
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    color: #000000;
    margin: 20px 0 20px 0;
  }
  .advantage .content .adv-box .desc {
    font-size: 18px;
  }
}
</style>
